#pragma once

#include "ui_render.h"
#include <GdiPlus.h>

_SSL_BEGIN
_SSUIL_BEGIN

class UIGdiplusRenderUtil
{
public:
	static void DrawImage(HDC dc, Gdiplus::Image *img, const UIPoint &dst_pt, float rotate = 0, unsigned int alpha_value = 0xff);
	static void DrawImage(HDC dc, Gdiplus::Image *img, const UIRect *src_rt,
		const UIRect &dest_rt, DWORD mask = 0, float rotate = 0, unsigned int alpha_value = 0xff);
	static void Draw9GridImage(HDC dc, Gdiplus::Image *img, const UIRect src_rt[9],
		const UIRect dest_rt[9], WORD mask = 0, unsigned int alpha_value = 0xff);

};

_SSUIL_END
_SSL_END

